package com.android.kotlincoroutinemvvmdemo
import android.os.Bundle
import com.android.kotlincoroutinemvvmdemo.base.BaseActivity
import com.android.kotlincoroutinemvvmdemo.databinding.ActivityBezierQuadToBinding

class BezierQuadToActivity : BaseActivity<ActivityBezierQuadToBinding>() {

    override fun getLayoutId() = R.layout.activity_bezier_quad_to

    override fun init(savedInstanceState: Bundle?) {

        mBinding.select0.setOnClickListener {
            mBinding.quadView.updateIndex(0)
        }

        mBinding.select1.setOnClickListener {
            mBinding.quadView.updateIndex(1)
        }

        mBinding.select2.setOnClickListener {
            mBinding.quadView.updateIndex(2)
        }

        mBinding.select3.setOnClickListener {
            mBinding.quadView.updateIndex(3)
        }

        mBinding.select4.setOnClickListener {
            mBinding.quadView.updateIndex(4)
        }

        mBinding.select5.setOnClickListener {
            mBinding.quadView.updateIndex(5)
        }
    }
}